package com.xiaoshuidi.cloud.module.rooms.convert.roomequipment;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipment.vo.*;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomEquipment;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author Feng
 * @date 2023/4/28
 */
@Mapper
public interface RoomEquipmentConvert {

    RoomEquipmentConvert INSTANCE = Mappers.getMapper(RoomEquipmentConvert.class);

    RoomEquipment convert(RoomEquipmentBaseVo req);

    RoomEquipment convert(RoomEquipmentImport req);

    RoomEquipmentExportRespVo convert(RoomEquipment entity);

    RoomEquipmentQueryResp convert2(RoomEquipment entity);

    RoomEquipment convert3(RoomEquipmentCreateReq entity);

    List<RoomEquipmentExportRespVo> convertList(List<RoomEquipment> list);

}
